<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/commonPage/common.jsp"%>
<link rel="stylesheet" href="${base }/style/informationDetail.css">
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>政策详情页面</title>
</head>
<body class="inner-container" style="margin-top: 8%;">

	<div class="detail-title"></div>
	<div class="detail-time"></div>
	<div class="detail-context"></div>

</body>
<script type="text/javascript">
var informationId = '<%=request.getParameter("id")%>' //获取从上一个页面传过来的id参数
	var informationData = ''
	$.ajax({ //通过controller的数据处理，返回通过id获取的新闻数据，并插入数据到jsp页面
		url : "${base }/information/getInformationDetail",
		type : "POST",
		data : {
			"id" : informationId
		},
		dataType : "json",
		success : function(res) {
			$(".detail-title").append(res.title)
			var releaseTime = '发布时间：  ' + dateFormat(res.time).substr(0,4)+'年'+dateFormat(res.time).substr(5,2)+'月'+dateFormat(res.time).substr(8,2)+'日   '+dateFormat(res.time).substr(11,8)
			$(".detail-time").append(releaseTime)
			$(".detail-context").append(res.context)
		}
	})
</script>
</html>